<template>
  <div>
    <Dog1
      v-for="(item, index) in arr"
      :key="index"
      :dogname="item.dogName"
      :imgurl="item.dogImgUrl"
    />
  </div>
</template>

<script>
import Dog1 from "./components/Dog1.vue";
export default {
  components: { Dog1 },
  data() {
    return {
      arr: [
        {
          dogImgUrl:
            "https://scpic.chinaz.net/files/pic/pic9/202003/zzpic23514.jpg",
          dogName: "博美",
        },
        {
          dogImgUrl:
            "https://scpic.chinaz.net/files/pic/pic9/202003/zzpic23514.jpg",
          dogName: "泰迪",
        },
        {
          dogImgUrl:
            "https://scpic.chinaz.net/files/pic/pic9/202003/zzpic23514.jpg",
          dogName: "金毛",
        },
        {
          dogImgUrl:
            "https://scpic.chinaz.net/files/pic/pic9/202003/zzpic23514.jpg",
          dogName: "哈士奇",
        },
        {
          dogImgUrl:
            "https://scpic.chinaz.net/files/pic/pic9/202003/zzpic23514.jpg",
          dogName: "阿拉斯加",
        },
        {
          dogImgUrl:
            "https://scpic.chinaz.net/files/pic/pic9/202003/zzpic23514.jpg",
          dogName: "萨摩耶",
        },
      ],
    };
  },
};
</script>

<style>
</style>